//统一管理相关的接口
import request from "@/utils/request";

//统一管理接口
enum API {
    SELECT_URL = "/itp/api/select/basic",
}

export const selectBond = (data: any) => request.post(`${API.SELECT_URL}/bond`, data);
export const selectBondDetail = (id: number) => request.get(`${API.SELECT_URL}/getBondDetail/${id}`);
export const calculate = (data: any) => request.post(`/itp/api/calculate`, data);
export const getExerciseDate = (bondCode: any,settleDate:any) => request.get(`/itp/api/calculate/exerciseDate?bondCode=${bondCode}&settleDate=${settleDate}`); //债券行权日
export const getCashFlow = (windCode: any) => request.get(`/itp/api/calculate/cashFlow?windCode=${windCode}`); //现金流量表